import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { FlashComponent } from './flash/flash.component';
import { CouponComponent } from './coupon/coupon.component';
import { BrandComponent } from './brand/brand.component';
import { NewComponent } from './new/new.component';
import { HotComponent } from './hot/hot.component';
import { SubjectComponent } from './subject/subject.component';
import { AdvertiseComponent } from './advertise/advertise.component';

const routes: Routes = [
  { path: '', pathMatch: 'full', redirectTo: 'flash' },
  { path: 'flash', component: FlashComponent, data: { breadcrumb: '秒杀活动列表' } },
  { path: 'coupon', component: CouponComponent, data: { breadcrumb: '优惠券列表' } },
  { path: 'brand', component: BrandComponent, data: { breadcrumb: '品牌推荐' } },
  { path: 'new', component: NewComponent, data: { breadcrumb: '新品推荐' } },
  { path: 'hot', component: HotComponent, data: { breadcrumb: '人气推荐' } },
  { path: 'subject', component: SubjectComponent, data: { breadcrumb: '专题推荐' } },
  { path: 'advertise', component: AdvertiseComponent, data: { breadcrumb: '广告列表' } },

];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class SmsRoutingModule { }
